package com.ys.entity.amazonorder;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_report].[dbo].TCO_YearShop", catalog="Id")
public class TcoYearShop extends BaseEntity<TcoYearShop> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="bigint")
	private Long shopId;
	@YsField(nameDataBase="TimeYear", nameJava="timeYear", typeDataBase="char")
	private String timeYear;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcoYearShop setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getShopId() {
		return shopId;
	}
	public TcoYearShop setShopId(Long shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getTimeYear() {
		return timeYear;
	}
	public TcoYearShop setTimeYear(String timeYear) {
		this.timeYear = timeYear;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TcoYearShop setNum(Integer num) {
		this.num = num;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TcoYearShop setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcoYearShop setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcoYearShop setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcoYearShop setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcoYearShop tcoYearShop(
		Long shopId,
		String timeYear,
		Integer num,
		BigDecimal amount,
		Integer status
			) {
		TcoYearShop entity = new TcoYearShop();
		entity.setShopId(shopId);
		entity.setTimeYear(timeYear);
		entity.setNum(num);
		entity.setAmount(amount);
		entity.setStatus(status);
		return entity;
	}
}